<%--
  Created by IntelliJ IDEA.
  User: 李明
  Date: 2016/7/4
  Time: 13:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<html>
<head>
  <%@ include file="/common/meta.jsp" %>
    <title>保存流程图</title>
  <script>
    $(function(){
      /*绑定显示页面下拉框*/
      $("#viewPageName").ligerComboBox({
        url:'${_ctx}/flow/workPage/getComboBoxData?processId=${processId}',
        valueField: 'id',
        textField: 'pageName',
        valueFieldID: 'viewPageId',
        selectBoxWidth: 170,
        width: 170,
        highLight:true,
        cancelable:true
      });
      $("#versionNote").val('${version}');
      $.ajax({
        url:'${_ctx}/flow/workPage/getPageNameById',
        type:'post',
        dataType:'json',
        data:{viewPageId:'${viewPageId}'},
        success:function(page){
          $("#viewPageName").ligerComboBox().setText(page.editPageName);
          $("#viewPageId").val('${viewPageId}');
        }
      });
    });

    function getMsg(){
      var viewPageId = $("#viewPageId").val();
      var versionNote = $("#versionNote").val();
      return {viewPageId:viewPageId,versionNote:versionNote};
    }
  </script>
</head>
<body>
<table style="border-collapse:separate; border-spacing:10px;margin:10px auto;">
  <tr>
    <td>显示页面：</td>
    <td>
      <input type="hidden" id="viewPageId" name="viewPageId" />
      <input type="text" id="viewPageName" name="viewPageName" />
    </td>
    <td><span style="color:red;font-size:20px;position:relative;top:2px;">*</span></td>
  </tr>
  <tr>
    <td valign="top">版本说明：</td>
    <td><textarea id="versionNote" style="min-width:170px;max-width:170px;"></textarea></td>
    <td><span style="color:red;font-size:20px;position:relative;top:2px;">*</span></td>
  </tr>
</table>
</body>
</html>
